<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
    <link rel="stylesheet" href="css/index.css">
</head>

<body style="height: 1500px;">

    <!-- 登录注册 -->
    <div class="header">
        <div class="login">
            <a href="registry.html">请注册</a>
            <a href="login.html">请登录</a>
        </div>
        <div class="admin" style="display: none;">
            <span></span>：欢迎光临
            <a href="javascript:;">退出</a>
        </div>
    </div>



    <!-- 其他的效果 -->
    <div class="nav"></div>
    <div class="banner">
        <div class="menu">
            <ul>
                <li>
                    <a href="#">家用电器</a>
                </li>
                <li>
                    <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
                </li>
                <li>
                    <a href="#">电脑</a><span>/</span><a href="#">办公</a>
                </li>
                <li>
                    <a href="#">家居</a><span>/</span><a href="#">家具</a><span>/</span><a href="#">家装</a><span>/</span><a href="#">厨具</a>
                </li>
                <li>
                    <a href="#">男装</a><span>/</span><a href="#">女装</a><span>/</span><a href="#">童装</a><span>/</span><a href="#">内衣</a>
                </li>
                <li>
                    <a href="#">美妆</a><span>/</span><a href="#">个护清洁</a><span>/</span><a href="#">宠物</a>
                </li>
                <li>
                    <a href="#">女鞋</a><span>/</span><a href="#">箱包</a><span>/</span><a href="#">钟表</a><span>/</span><a href="#">珠宝</a>
                </li>
                <li>
                    <a href="#">男鞋</a><span>/</span><a href="#">运动</a><span>/</span><a href="#">户外</a>
                </li>
                <li>
                    <a href="#">房产</a><span>/</span><a href="#">汽车</a><span>/</span><a href="#">汽车用品</a>
                </li>
                <li>
                    <a href="#">母婴</a><span>/</span><a href="#">玩具乐器</a>
                </li>
                <li>
                    <a href="#">食品</a><span>/</span><a href="#">酒类</a><span>/</span><a href="#">生鲜</a><span>/</span><a href="#">特产</a>
                </li>
                <li>
                    <a href="#">艺术</a><span>/</span><a href="#">礼品鲜花</a><span>/</span><a href="#">农资绿植</a>
                </li>
                <li>
                    <a href="#">医药保健</a><span>/</span><a href="#">计生情趣</a>
                </li>
                <li>
                    <a href="#">图书</a><span>/</span><a href="#">文娱</a><span>/</span><a href="#">教育</a><span>/</span><a href="#">电子书</a>
                </li>
                <li>
                    <a href="#">机票</a><span>/</span><a href="#">酒店</a><span>/</span><a href="#">旅游</a><span>/</span><a href="#">生活</a>
                </li>
                <li>
                    <a href="#">理财</a><span>/</span><a href="#">众筹</a><span>/</span><a href="#">白条</a><span>/</span><a href="#">保险</a>
                </li>
                <li>
                    <a href="#">安装</a><span>/</span><a href="#">维修</a><span>/</span><a href="#">清洗</a><span>/</span><a href="#">二手</a>
                </li>
                <li>
                    <a href="#">工业品</a>
                </li>
            </ul>
            <div class="cartlist">
                <div class="item"><a href="list.html">模拟跳转商品列表页</a></div>
                <div class="item">第二块内容</div>
                <div class="item">第三块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
                <div class="item">第四块内容</div>
            </div>
        </div>
    </div>
</body>

</html>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
    if (localStorage.getItem('xingming')) {
        $('.login').hide();
        $('.admin').show();
        $('.admin span').html(localStorage.getItem('xingming'))
    }

    $('.admin a').on('click', function() {
        localStorage.removeItem('xingming');
        $('.login').show();
        $('.admin').hide();
    });
</script>